package com.zczc.tagmanagement.dto;

import com.yishuifengxiao.common.tool.validate.domain.Create;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 15:22 2019-1-7
 * @Modify by:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "tag标签的dto")
@Validated
public class TagDTO implements Serializable {

  private static final long serialVersionUID = 4388785344172756597L;
  @ApiModelProperty(name = "tagName" ,value = "标签的名字",required = true)
  @NotBlank(message = "标签的名字不能为空",groups = {Create.class})
  private String tagName;

  @ApiModelProperty(name = "documentNum",value = "文档数量",required = true)
  @Min(value = 1,message = "文档數量最少為1")
  private Integer documentNum;

  @ApiModelProperty(name = "parentCode",value = "所属分类",required = true)
  @NotBlank(message = "所属分类不能为空",groups = {Create.class})
  private String parentCode;


}
